package com.haier.caculatesdk;

import android.util.Log;

import com.haier.commoninterface.ICaculateManagerInterface;

public class CaculateManager implements ICaculateManagerInterface {

    private static CaculateManager caculateManager;

    private CaculateManager(){}

    public static CaculateManager getInstance() {
        if (caculateManager == null) {
            caculateManager = new CaculateManager();
        }
        return caculateManager;
    }

    @Override
    public int addInt(int a, int b) {
        return a + b;
    }

    @Override
    public String addString(String a, String b) {
        return "str_" + a + b;
    }

    @Override
    public String getCurrentState() {
        Log.e("XXX", "call getCurrentState");
        return "busy";
    }
}
